<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Background属性</title>
    <style type="text/css">
        .box{
            width: 400px;
            height: 200px;
            border: 5px solid #000000;
            margin:50px auto 0;
            background-image: url(images/bg.jpg);
            background-repeat: no-repeat;  
            background-position: 10px 10px;
        }

    </style>
</head>
<body>
    <div class="box">

    </div>
 
</body>
</html>